"""
@Description :   默认 config
@Author      :   tqychy 
@Time        :   2025/08/23 14:57:18
"""
import logging

from yacs.config import CfgNode as CN

_C = CN()
_C.GLOBALS = CN()
_C.GLOBALS.CONSOLE_VERBOSE_LEVEL = logging.ERROR  # 控制台日志级别
_C.GLOBALS.EXPR_NAME = "default_name"  # 实验名称
_C.GLOBALS.FILE_VERBOSE_LEVEL = logging.INFO  # 归档日志级别
_C.GLOBALS.SEED = 1024

_C.EVAL = CN()
_C.EVAL.DATASET = "" # 测试使用的数据集
_C.EVAL.DATASET_MAX_LEN = -1 # 测试数据集最大长度
_C.EVAL.MODEL_NAME = "" # 测试模型名称
_C.EVAL.MODEL_PATH = "" # 测试模型路径 / api 模型名称
_C.EVAL.TYPE = "rec" # 测试任务 rec / detect


cfg = _C


def get_cfg_defaults():
    return _C.clone()


if __name__ == "__main__":
    print(cfg)